package com.yhc.test;

import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.OutputStream;

/**
 * @Author Corday 天涯
 * @Date 2022/3/12 0:03
 */
public class MyOutputStream extends ObjectOutputStream {
    public MyOutputStream(OutputStream out) throws IOException {
        super(out);
    }

    @Override
    protected void writeStreamHeader() throws IOException {
       //不写入文件头
        super.reset();
    }
}
